<!DOCTYPE html>
<html  xmlns:th="http://www.thymeleaf.org"
	   xmlns:widget="http://www.thymeleaf.org">
<head>
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
	<title></title>
	<link href="/asset/css/admin.css" rel="stylesheet" />
	<script src="/asset/layui/layui.js?v=1.0.0"></script>
	<script src="/asset/js/common.js?v=1.0.0"></script>
	<style id='panda-theme-color'></style>
</head>
<body  class="theme-panda">
<div style="padding: 20px;background-color: white;">
	<form class="layui-form model-form" action="" style="width:80%;">
		<input name="id" type="hidden" th:value="${info['id']}?:0">
        <div class="layui-form-item">
            <label class="layui-form-label">角色名称：</label>
            <div class="layui-input-block">
                <input name="name" th:value="${info['name']}" lay-verify="required" autocomplete="off"
                       placeholder="请输入角色名称" class="layui-input" type="text">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态：</label>
			<div class="layui-input-block">
				<widget:switchCheck name="status" data="正常|禁用" th:value="${info['status']} ?: 1"/>
			</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序：</label>
            <div class="layui-input-block">
                <input name="sort" th:value="${info['sort']}" lay-verify="required|number" autocomplete="off"
                       placeholder="请输入排序" class="layui-input" type="text">
            </div>
        </div>
		 
		<div class="layui-form-item layui-table-tool-temp model-form-footer" style="margin-top: 40px;">
			<button class="layui-btn layui-btn-primary" lay-filter="submitForm" lay-submit="">立即保存</button>
			<button class="layui-btn " type="button" pa-event="closeDialog">关&nbsp;&nbsp;&nbsp;&nbsp;闭</button>
		</div>
	</form>
</div>

<!-- JS部分 -->
<script type="text/javascript">
	layui.use(['func'], function () {
	});
</script>

</body>
</html>